package com.freeheart.validation.constraintvalidators.in;

/**
 * 提供InCollection实例的接口
 */
public interface InCollectionSupplier {

    /**
     * 当前环境是否支持
     *
     * @return true|false
     */
    boolean support();

    /**
     * 根据Class生成InCollection实例
     *
     * @param clazz Class<? extends InCollection>
     * @return InCollection实例
     */
    InCollection getInCollectionInstance(Class<? extends InCollection> clazz);

}
